import { getRequest, postRequest,postBodyRequest ,bodyPostRequest} from '../../libs/axios';
import { exportPost } from '../../libs/axios';



// region TODO 获取档案转寄地址分页数据
export const getPageData = param => postRequest('/archiveTransferAddress/getByPage', param);


export const exportAllArchiveTransferAddress = () => {
    return exportPost('/archiveTransferAddress/export');
};

export const getAreData = param => postRequest('/archiveTransferInfo/getAreData', param);

export const getArchiveTransferInfoById = param => postRequest('/archiveTransferInfo/getById', param);

// 导出全部数据
export const exportAllArchiveTransferInfo = () => {
    return exportPost('/archiveTransferInfo/export');
};
export const exportSelectArchiveTransferInfo = (params) => {
    return exportPost('/archiveTransferInfo/exportByIds',params);
};

export const exportSearchArchiveTransferInfo = (params) => {
    return exportPost('/archiveTransferInfo/exportCondition',params);
};
export const getByLocationAPI = (param) => postRequest('/archiveTransferAddress/getByLocation',param);


export const batchBackAPI = (param) => postRequest('/archiveTransferInfo/batch/back',param);

//导入档案信息
export const importArchiveTransferInfoAPI = params => {
    return postBodyRequest('/archiveTransferInfo/import', params);
};


// region TODO 获取档案信息分页数据
export const getByPageArchiveTransferInfo = param => postRequest('/archiveTransferInfo/getByPage', param);

// region TODO 获取档案转寄申请审核分页数据
export const getListRecordData = param => postRequest('/archiveTransferInfo/getRecordByUserId', param);

// region TODO 获取档案转寄申请审核分页数据
export const getPageReviewData = param => postRequest('/archiveTransferInfo/todoList', param);


// region TODO 获取档案转寄申请我的已办分页数据
export const getArchiveTransferInfoDoneList = param => postRequest('/archiveTransferInfo/archiveTransferInfoDoneList', param);


// region TODO 获取档案转寄申请我的已办批量删除
export const archiveTransferDoneDeleteByIdsByIds = param => exportPost('/archiveTransferRecord/deleteByIds', param);

// region TODO 获取档案转寄申请我的已办导出全部
export const archiveTransferDoneExport = param => exportPost('/archiveTransferRecord/export', param);


// region TODO 获取档案转寄申请我的已办导出所选
export const archiveTransferDoneExportByIds = param => exportPost('/archiveTransferRecord/exportByIds', param);


// region TODO 获取档案转寄申请我的已办导出查询数据
export const archiveTransferDoneExportCondition = param => exportPost('/archiveTransferRecord/exportCondition', param);


// region TODO 获取档案转寄申请通过
export const updateArchiveTransfer= param => postRequest('/archiveTransferInfo/update', param);

// region TODO 获取档案转寄申请通过
export const archiveTransferPass = param => postRequest('/archiveTransferInfo/archiveTransferPass', param);

// region TODO 获取档案转寄申请通过
export const archiveTransferPassList = param => bodyPostRequest('/archiveTransferInfo/archiveTransferPassList', param);

// region TODO 获取档案转寄申请驳回
export const archiveTransferReject = param => postRequest('/archiveTransferInfo/back', param);

// region TODO 获取档案转寄申请驳回
export const backList = param => bodyPostRequest('/archiveTransferInfo/backList', param);


// region TODO 获取档案数据统计数据
export const getDataStatistics = param => postRequest('/archiveTransferInfo/getDataStatistics', param);